﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyMovieInfo
{
    class IMDBLookup : IMovieLookup
    {
        public Movie GetMovieDetails(string name, int? year, string file)
        {

            if (name.Equals("Good File, No Movie"))
            {
                return new Movie()
                {
                    Name = name,
                    Year = year,
                    Synopsis = "Some bogus synopsis that really doesn't make any sense. But then again there are some movies that don't make much sense either.",
                    MatchFound = true,
                    CoverURL = "C:\\temp\\somepic.jpg",
                    Source = "IMDB"

                };
            }
            else
            {
                return new Movie()
                {
                    Name = name,
                    Year = year,
                    Synopsis = null,
                    MatchFound = false,
                    CoverURL = null
                };
            }
        }
    }
}
